<#include "user_logon_header.ftl">

	<div><p></p></div>
	
	<div class="col-md-8 col-md-offset-2">
	
		<div class="panel panel-primary">
			   <div class="panel-heading"> </div>			
			   <div class="panel-body">
			      <form class="form-signin" role="form" id="form" action="user_logon" method="post">
			        <h2 class="form-signin-heading">用户登录</h2>
			        <div class="form-group">
			        <input type="hidden" name="force" value="${force?if_exists}">
			        <input type="hidden" name="source" value="user_logon_from_manage">
			        <input type="text" name="account" class="form-control" placeholder="账号/手机/邮箱" required autofocus/>
			        </div>
			        <div class="form-group">
			        <input type="password" name="password" class="form-control" placeholder="密码" required/>
			        </div>
			        <div class="form-group">
			        <label class="checkbox">
			          <input type="checkbox" value="remember-me"/>下次自动登录
			        </label>
			        </div>
			        <button class="btn btn-lg btn-primary btn-block" type="submit">登录</button>
			      </form>
			   </div>
			   <div class="panel-footer"></div>
		</div>	  
		    
	</div>
	        
<#include "user_logon_footer.ftl">

<script type="text/javascript">
$().ready(function() {

	//
	$("#form").validate({
		rules: {
			account: {
				required: true,
				minlength: 4
			},
			password: {
				required: true,
				minlength: 6
			},
		},
		messages: {
			account: {
				required: "请输入账号",
				minlength: "账号长度必须大于4"
			},
			password: {
				required: "请输入密码",
				minlength: "密码长度必须大于6"
			},
		}
	});
	
});  
</script>